package org.example.object.notify2;


public class Producer {
    private final Buffer buffer;

    public Producer(Buffer buffer) {
        this.buffer = buffer;
    }

    public void produce(int value) {
        buffer.offer(value);
        System.out.println("Produced: " + value);
    }
}
